﻿// Services/NotificationService.cs
using MyDapperApi.Services;
using MyDapperApi.Services.QywxDocument.MeiTuanComment;
using System.Threading.Tasks;

public class UpdateMeiTuranDocumentCommentJobService
{
    private readonly IDocMeiTuanCommentService _docMeiTuanComment;

    // 通过依赖注入获取配置，从而读取连接字符串
    public UpdateMeiTuranDocumentCommentJobService(IDocMeiTuanCommentService docMeiTuanCommentService)
    {
        _docMeiTuanComment = docMeiTuanCommentService;
    }
    public async Task IUpdateDocument()
    {
        await _docMeiTuanComment.InsertMeiTuanComment(DateTime.Now.AddDays(-1));
    }
}